package cn.neusoft.mapper;

import cn.neusoft.domain.Order;
import cn.neusoft.domain.Substation;
import org.mockito.internal.matchers.Or;

import java.util.List;

public interface OrderMapper {

    List<Order> findAll();

    //根据订单状态查找订单
    List<Order> findByStatus(String status);

    //根据订单类型查找订单
    List<Order> findByType(String type);
    List<Order> findById(String id);
    List<Order> findByReceiverName(String name);
    List<Order> findByConsigneeName(String name);
    void add(Order order);


    List<Substation> findAllfz();
}
